package com.taoge.p4.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 库存表
 * @TableName sku_inventory
 */
@TableName(value ="sku_inventory")
@Data
public class SkuInventory implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * spu_id
     */
    private Long spuId;

    /**
     * sku_id
     */
    private Long skuId;

    /**
     * sku_编号
     */
    private String skuSn;

    /**
     * 总库存,实际库存=总库存-锁定库存
     */
    private Integer totalNumber;

    /**
     * 锁定库存,实际库存=总库存-锁定库存
     */
    private Integer lockNumber;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}